<h2>Location Management</h2>
<hr/>
<p>The location management is used for creating additional locations or branches.<br />
 To create a new location/branch, select the 'add a new location option'.<br />
 To modify a particular location/branch, select the modify option.<br />
To delete a particular location/branch, select delete.
</p>
<center>

<table>
<tr>
	<th>Location ID</th>
	<th>Location Name</th>
	<th class="tablehead">Actions</th>
</tr>
<?php
foreach ($locations->result() as $location)
{
	echo '<tr>';
	
	// Details
	echo '<td>' . $location->location_id . '</td>';
	echo '<td>' . $location->location_name . '</td>';
	
	// Actions
	echo '<td>';
	echo anchor('admin/location_management/modify/' . $location->location_id, 'Modify') . '/';
	echo anchor('admin/location_management/delete/' . $location->location_id, 'Delete', array('onclick'=>"return confirm('Are you sure you wish to remove this location? All volumes associated with this location will be deleted.');"));
	echo '</br></td>';
	echo '</tr>';
}
?>
</table>
<br />
<table>
<tr>
	<td align="center"><?php echo anchor('admin/location_management/add/', 'Add A New Location'); ?></td>
</tr>
</table>
</center>
